package com.yc.controller;

import com.vo.Result;
import com.yc.controller.hystrix.UserActionImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

@FeignClient(value = "Squirrel-user" ,fallback = UserActionImpl.class )
public interface UserAction {
    @RequestMapping("captcha/captcha")
    public @ResponseBody Result toCaptchaCode();

    @RequestMapping("user/login")
    public Result tologin(@RequestParam("phone") String phone, @RequestParam("password") String password);

    @RequestMapping("user/register")
    public Result toregister(@RequestParam("password") String password,@RequestParam("phone") String phone);

}
